package chapter10.test11;

/**
 * Created by Caesar on 2015/11/27.
 */
public class GoodBook {
    private class TIJ implements Book{
        public String name(){
            return "Thinking in JAVA";
        }
    }

    public Book getGoodBook(){
        return new TIJ();
    }
    public static void main(String[] args) {
        GoodBook goodbook = new GoodBook();
        TIJ book =(TIJ) goodbook.getGoodBook();
        System.out.printf(book.name());
    }
}
